POV-Ray : Newsgroups : povray.general : POV Parsing : Re: POV Parsing Server Time
9 Aug 2024 13:26:59 EDT (-0400)
  Re: POV Parsing  
From: Warp
Date: 29 Aug 2000 11:56:31
Message: <39abdd2e@news.povray.org>
Chris Huff <chr### [at] maccom> wrote:
: And the only benefit would be lower memory usage, which is 
: really only relevant if you are storing huge arrays.

  It's not the only benefit. The other benefit would be precision. If you
use very large integers, floats may lose information.
  This may be important when making mathematical operations. For example:

25^7/1953125  ( = 3125 )

may give a different result if we use integers or if we use floats.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.